Include <climits> for GCC 16
Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/
4a2294f59ebbbe690d09aa6f7e021e29cbb85782
```
poppler-26.01.0/poppler/SplashOutputDev.cc: In constructor
‘T3FontCache::T3FontCache(const Ref*, double, double, double, double, int, int,
int, int, bool, bool)’:
poppler-26.01.0/poppler/SplashOutputDev.cc:1129:18: error: ‘INT_MAX’ was not
declared in this scope
1129 | if (glyphW > INT_MAX / glyphH || glyphW <= 0 || glyphH <= 0 ||
glyphW * glyphH > 100000) {
| ^~~~~~~
poppler-26.01.0/poppler/SplashOutputDev.cc:84:1: note: ‘INT_MAX’ is defined in
header ‘<climits>’; this is probably fixable by adding ‘#include <climits>’
83 | #include "SplashOutputDev.h"
+++ |+#include <climits>
84 | #include <algorithm>
```
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Gbp-Pq: Name Include-climits-for-GCC-16.patch
SplashOutputDev: Fix integer overflow in tilingPatternFill
Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/
8352264766652b98336e92359a70b3161a9ab97a
Bug-Debian: https://bugs.debian.org/
1138708
Bug: https://gitlab.freedesktop.org/poppler/poppler/-/work_items/1715
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2026-10118
Use checkedMultiply() to check integer multiplication of surface size
and number of repetitions to avoid integer overflow and possible memory issues.
Fixes: #1715
Gbp-Pq: Name SplashOutputDev-Fix-integer-overflow-in-tilingPatter.patch